package one.stand.mapper;

import com.jmp.api.admin.dto.GoodsTypeListResponse;
import one.stand.model.Goods;
import one.stand.model.GoodsType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsApiAdminMapper {
    List<Goods> selectList(@Param("name") String name);

    List<Goods> selectSelectList(@Param("name") String name, @Param("categoryId") Integer categoryId);

    List<Goods> selectByCompany(@Param("companyId") Integer companyId, @Param("nameLike") String nameLike, @Param("categoryId") Integer categoryId);

    /**
     * 产品分类列表
     */
    List<GoodsType> selectSelectTypeList(@Param("companyId") Integer companyId, boolean isSelect);

    List<GoodsTypeListResponse.Type> selectGoodsType(@Param("companyId") int platformCompanyId);

    List<GoodsType> selectParent(@Param("companyId") int platformCompanyId);

    List<Goods> selectPlatformTypeList(@Param("type") Integer type, @Param("companyNameLike") String companyNameLike, @Param("nameLike") String nameLike, @Param("typeId") Integer typeId,
                                       @Param("labelName") String labelName);
}
